// Station.cpp: implementation of the CStation class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "remotetracker.h"
#include "Station.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CStation::CStation()
{
	state = STATE_OK;
	passed = FALSE;
	selected = FALSE;
}

CStation::~CStation()
{
	
}

void CStation::setName(CString name){
	this->name = name;
}

CString CStation::getName(){
	return name;
}

void CStation::setState(int state){
	this->state = state;
}

int CStation::getState(){
	return state;
}

int CStation::getDistanceFromStart(){
	return distanceFromStart;
}

void CStation::setDistanceFromStart(int distance){
	this->distanceFromStart = distance;
}

bool CStation::operator == (CStation& station){
	return (*this).getDistanceFromStart() == station.getDistanceFromStart();
}

void CStation::setPassed(bool passed){
	this->passed = passed;
}

bool CStation::isPassed(){
	return passed;
}

void CStation::setSelected(bool selected){
	this->selected = selected;
}

bool CStation::isSelected(){
	return selected;
}

CTime CStation::getPassTime(){
	return passTime;
}

void CStation::setPassTime(CTime passTime){
	this->passTime = passTime;
}